<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // <!--parseInt相关用法-->
        console.log(parseInt('013'));
        console.log(parseInt('120px'));
        console.log(parseInt('+120px'));
        console.log(parseInt('-120px'));
        
        //<!--parseInt进制转换，将前面的进制数转换为十进制-->
        console.log(parseInt('010', 2));
        console.log(parseInt('16',10));
        console.log(parseInt('F',16));
    </script>
</head>
<body>
    
</body>
</html>